﻿// Mostly CSS Only Tab/Accordion Functions from Vesa Piittinen 
// Code that IE < 9 needs to make the Tab/Accordion Work
//This could be put into the page.

// <!--[if lt IE 9]><script>window.ltIE9=true</script><![endif]-->
if (window.ltIE9) {
    (function ($) {
        $('.tabs input[type="radio"]:checked')
        .closest('.tab')
        .addClass('checked');
        $('html').on('click', '.tabs input', function () {
            $('input[name="' + this.name + '"]')
            .closest('.tab')
            .removeClass('checked');
            $(this)
            .closest('.tab')
            .addClass('checked');
        });
    })(window.jQuery);
}
